<ion-view>
    <ion-header-bar align-title="center" class="bar-positive">
        <a class="button icon-left ion-chevron-left button-clear" ng-click="goBack()">返回</a>
        <div class="h1 title">我的简历</div>
    </ion-header-bar>
    <ion-content class="padding">
        <!-- <div class="row">
            <div class="col col-center"></div>
            <div class="col col-center"><img src="/employ/assets/img/avatar.gif" width="100%"></div>
            <div class="col col-center"></div>
            
        </div> -->
        <div class="list">
            <label class="item item-input">
                <span class="input-label">简历名称</span>
                <input type="text" ng-model="tmp.resume.resume_name">
            </label>
            <div class="item item-button-right">
                工作经历
                <div class="buttons" ng-if="tmp.resume.work_info.length < 3">
                    <button class="button button-positive" ng-click="add('work')">
                        <i class="icon icon ion-plus"></i>
                    </button>
                </div>
            </div>
            <div class="item item-button-right" ng-repeat="wi in tmp.resume.work_info">
                {{wi.company_name}}
                <div class="buttons">
                    <button class="button button-positive" ng-click="edit('work', $index)">
                        <i class="icon icon ion-edit"></i>
                    </button>
                    <button class="button button-assertive" ng-click="remove('work', $index)">
                        <i class="icon icon ion-minus"></i>
                    </button>
                </div>
            </div>
            <div class="item item-button-right">
                教育经历
                <div class="buttons" ng-if="tmp.resume.education_info.length < 3">
                    <button class="button button-positive" ng-click="add('education')">
                        <i class="icon icon ion-plus"></i>
                    </button>
                </div>
            </div>
            <div class="item item-button-right" ng-repeat="ei in tmp.resume.education_info">
                {{ei.school_name}}
                <div class="buttons">
                    <button class="button button-positive" ng-click="edit('education', $index)">
                        <i class="icon icon ion-edit"></i>
                    </button>
                    <button class="button button-assertive" ng-click="remove('education', $index)">
                        <i class="icon icon ion-minus"></i>
                    </button>
                </div>
            </div>
            <div class="item item-button-right">
                语言能力
                <div class="buttons" ng-if="tmp.resume.language_info.length < 3">
                    <button class="button button-positive" ng-click="add('language')">
                        <i class="icon icon ion-plus"></i>
                    </button>
                </div>
            </div>
            <div class="item item-button-right" ng-repeat="li in tmp.resume.language_info">
                {{li.language + li.level}}
                <div class="buttons">
                    <button class="button button-positive" ng-click="edit('language', $index)">
                        <i class="icon icon ion-edit"></i>
                    </button>
                    <button class="button button-assertive" ng-click="remove('language', $index)">
                        <i class="icon icon ion-minus"></i>
                    </button>
                </div>
            </div>
            <div class="item item-button-right">
                技能爱好
                <div class="buttons" ng-if="tmp.resume.skill_info.length < 3">
                    <button class="button button-positive" ng-click="add('skill')">
                        <i class="icon icon ion-plus"></i>
                    </button>
                </div>
            </div>
            <div class="item item-button-right" ng-repeat="si in tmp.resume.skill_info">
                {{si.name}}
                <div class="buttons">
                    <button class="button button-positive" ng-click="edit('skill', $index)">
                        <i class="icon icon ion-edit"></i>
                    </button>
                    <button class="button button-assertive" ng-click="remove('skill', $index)">
                        <i class="icon icon ion-minus"></i>
                    </button>
                </div>
            </div>
        </div>
    </ion-content>
    <div class="bar bar-footer">
        <div class="row row-center">
            <div class="button-bar">
                <a class="button button-positive button-clear" ng-click="saveResume()">保存</a>
                <a class="button button-positive button-clear" ng-click="cancelSaveResume()">取消</a>
            </div>
        </div>
    </div>
</ion-view>
